package com.jindy.module.statement.service.impl;

import com.jindy.module.statement.domain.StatementExpenses;
import com.jindy.module.statement.mapper.StatementExpensesMapper;
import com.jindy.module.statement.service.StatementExpensesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 结算机器费用Service接口实现类
 *
 * @author zhaoxi
 * @date 2023-01-05
 */
@Service
public class StatementExpensesServiceImpl implements StatementExpensesService {

    @Autowired
    private StatementExpensesMapper statementExpensesMapper;

    /**
     * 查询结算机器费用
     *
     * @param id 结算机器费用键
     * @return 结算机器费用
     */
    @Override
    public StatementExpenses selectStatementExpensesById(Long id)
    {
        return statementExpensesMapper.selectStatementExpensesById(id);
    }

    /**
     * 查询结算机器费用列表
     *
     * @param statementExpenses 结算机器费用
     * @return 结算机器费用
     */
    @Override
    public List<StatementExpenses> selectStatementExpensesList(StatementExpenses statementExpenses)
    {
        return statementExpensesMapper.selectStatementExpensesList(statementExpenses);
    }

    /**
     * 新增对账单费用
     *
     * @param statementExpenses 结算机器费用
     * @return 结果
     */
    @Override
    public int insertStatementExpenses(StatementExpenses statementExpenses)
    {
        return statementExpensesMapper.insertStatementExpenses(statementExpenses);
    }

    /**
     * 修改对账单费用
     *
     * @param statementExpenses 结算机器费用
     * @return 结果
     */
    @Override
    public int updateStatementExpenses(StatementExpenses statementExpenses)
    {
        return statementExpensesMapper.updateStatementExpenses(statementExpenses);
    }

    /**
     * 批量删除结算机器费用
     *
     * @param ids 需要删除的结算机器费用主键
     * @return 结果
     */
    @Override
    public int deleteStatementExpensesByIds(Long[] ids)
    {
        return statementExpensesMapper.deleteStatementExpensesByIds(ids);
    }

    /**
     * 删除结算机器费用信息
     *
     * @param id 结算机器费用
     * @return 结果
     */
    @Override
    public int deleteStatementExpensesById(Long id)
    {
        return statementExpensesMapper.deleteStatementExpensesById(id);
    }
}
